<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title></title>
<script>
function Person(name) {
	this.name = name;
	this.say = function() {
		alert("Hello!");
	};
}

Person.prototype.cry = function() {
	alert(this.name + " crying!");
}

var p1 = new Person("赵波");
var p2 = new Person("djh");

p1.say();
p2.say();

alert(p1.say == p2.say);

p1.cry();
p2.cry();

alert(p1.cry == p2.cry);
</script>
</head>
<body>
<a href="">click me</a>
<div>
	<ul>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
		<li></li>
	</ul>
</div>
</body>
</html>
